<%@page import="herramientas.baseDatos"%>
<%@page import="java.util.ArrayList"%>
<%@ include file="/layout/header.jspf" %>
<title>Eliminar Universidad</title>



<script>
    $(document).ready(function(){
        $(".desaparecer").hide(); 
        $(".universidad").change(function(){
            $(".desaparecer").show();
        });
    });
            
</script>

<%@ include file="/layout/top.jspf" %>
<%@include file="/permisos/permisoAdmin.jspf"%>

<html:form action="/eliminar/elUniversidad">
    <div class="input_upas">
        <div class="input_upas_inner select_upas">
            <html:select property="id" styleClass="select universidad" >
                <html:option value="">Universidad</html:option>
                <%
                    baseDatos u = baseDatos.getInstance();
                    ArrayList[] univ = u.getUniversidad();
                    if (univ != null) {
                        for (int i = 0; i < univ[0].size(); i++) {
                            out.println("<option value=\"" + univ[1].get(i) + "\">" + univ[0].get(i) + "</option>");
                        }
                    }
                    baseDatos.cerrarConexion();

                %>
            </html:select>
            <div class="select" title="Universidad"></div>
        </div>
    </div>

    <div class="desaparecer">
        <span class="submit_upas_wrapper">
            <html:submit styleClass="submit_upas" value="Eliminar">
            </html:submit>
        </span>
    </div>
</html:form>
<%@ include file="/layout/bottom.jspf" %>